package pers.cj.pdos.mapper;

import org.apache.ibatis.annotations.Param;
import pers.cj.pdos.entity.Goods;
import pers.cj.pdos.entity.PacketGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import pers.cj.pdos.vo.CountVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
public interface PacketGoodsMapper extends BaseMapper<PacketGoods> {
    List<CountVo> checkByGoodsList(@Param("list") List<Goods> list);

    void insertBatch(@Param("list")List<PacketGoods> list);

    void deleteByPacket(@Param("packetId") String packetId);

    /**
     * 从list中取得套餐商品的列表，其中list还有packetid
     * @param list list中还有packetId
     * @return
     */
    List<PacketGoods> listByListPacket(@Param("list")List list);
}
